/**
 * @author 	Jadic
 * @created 2014-2-28
 */
package com.lazy.dbdemo.bean;

import java.util.Date;

import com.lazy.lib.util.DateUtil;
import com.lazy.lib.util.UConst;


/**
 * 加载数据库采用该Gps类封装数据
 */
public class GpsBean {
	
	private String vehicleNo;	//车牌号
	private Date gpsTime;
	private double lon;
	private double lat;
	private short speed;
	private short direction;
	private Date dbSysTime;

	public GpsBean() {
		vehicleNo = UConst.EMPTY_STR;
	}
	
	@Override
	public String toString() {
		StringBuilder sBuilder = new StringBuilder();
		sBuilder.append("vehicleNo:").append(this.vehicleNo);
		sBuilder.append(",gpsTime:").append(DateUtil.formatDateTime(this.gpsTime));
		sBuilder.append(",lon:").append(this.lon).append(",lat:").append(this.lat);
		sBuilder.append(",speed:").append(this.speed);
		return sBuilder.toString();
	}

	public String getVehicleNo() {
		return vehicleNo;
	}

	public void setVehicleNo(String vehicleNo) {
		if (vehicleNo != null) {
			this.vehicleNo = vehicleNo;
		}
	}

	public Date getGpsTime() {
		return gpsTime;
	}

	public void setGpsTime(Date gpsTime) {
		this.gpsTime = gpsTime;
	}

	public double getLon() {
		return lon;
	}

	public void setLon(double lon) {
		this.lon = lon;
	}

	public double getLat() {
		return lat;
	}

	public void setLat(double lat) {
		this.lat = lat;
	}

	public short getSpeed() {
		return speed;
	}

	public void setSpeed(short speed) {
		this.speed = speed;
	}

	public short getDirection() {
		return direction;
	}

	public void setDirection(short direction) {
		this.direction = direction;
	}

	public Date getDbSysTime() {
		return dbSysTime;
	}

	public void setDbSysTime(Date dbSysTime) {
		this.dbSysTime = dbSysTime;
	}


}
